<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
<meta http-equiv="content-language" content="de" />
<meta http-equiv="content-type" content="text/html; charset=utf-8;" />
<title>railbrowser</title>
<link rel="stylesheet" type="text/css" href="css/properties.css" media="all" />
<script type="text/javascript">
	function derive_mode () {

	}
</script>
</head>

<body>

<!-- Beginn: h1 -->
<h1>
<img id="current_object" src="<!--{$object.icon}-->" border="0" title="Dieses Objekt." />
<p>Name: <b title="<!--{$object.name}-->"><!--{$object.name}--></b><br />
Type: <!--{$object.type}--></p>
</h1>
<!-- End: h1 -->

<!-- Beginn: object_data -->
<div id="object_data">
<p><span>rail ID:</span> <!--{$object.id}--></p>
<p title="<!--{$object.path}-->"><span>Pfad:</span> <!--{$object.path}--></p>
<p><span>Erstellt:</span> <!--{$object.time_create}--></p>
<p><span>Geändert:</span> <!--{$object.time_lastwrite}--></p>
<br />
<form action="properties.php?object=<!--{$object.id}-->" method="POST">

<label><span>Besitzer:</span>
<select name="user" <!--{if !$object.is_rootuser}--> disabled="disabled"<!--{/if}-->>
<!--{foreach from=$rail_users item=user}-->
<option value="<!--{$user.id}-->"<!--{if $user.id eq $object.user}--> selected="selected"<!--{/if}--><!--{if !$object.is_writeable}--> disabled="disabled"<!--{/if}-->><!--{$user.name}--></option>
<!--{/foreach}-->
</select>
<select name="rights_user" <!--{if !$object.is_rootuser AND !$object.is_currentuser_user }--> disabled="disabled"<!--{/if}-->>
<option value="0"<!--{if $object.mode.user eq 0}--> selected="selected"<!--{/if}-->>Keine Rechte</option>
<option value="4"<!--{if $object.mode.user eq 4}--> selected="selected"<!--{/if}-->>Lesen</option>
<option value="6"<!--{if $object.mode.user eq 6}--> selected="selected"<!--{/if}-->>Lesen&amp;Schreiben</option>
</select></label>

<label><span>Gruppe:</span>
<select name="group" <!--{if !$object.is_rootuser AND !$object.is_currentuser_user }--> disabled="disabled"<!--{/if}-->>
<!--{foreach from=$rail_groups item=group}-->
<option value="<!--{$group.id}-->"<!--{if $group.id eq $object.group}--> selected="selected"<!--{/if}-->><!--{$group.name}--></option>
<!--{/foreach}-->
</select>
<select name="rights_group" <!--{if !$object.is_rootuser AND !$object.is_currentuser_user }--> disabled="disabled"<!--{/if}-->>
<option value="0"<!--{if $object.mode.group eq 0}--> selected="selected"<!--{/if}-->>Keine Rechte</option>
<option value="4"<!--{if $object.mode.group eq 4}--> selected="selected"<!--{/if}-->>Lesen</option>
<option value="6"<!--{if $object.mode.group eq 6}--> selected="selected"<!--{/if}-->>Lesen&amp;Schreiben</option>
</select></label>

<label><span>Andere:</span>
<select name="rights_other" <!--{if !$object.is_rootuser AND !$object.is_currentuser_user }--> disabled="disabled"<!--{/if}-->>
<option value="0"<!--{if $object.mode.other eq 0}--> selected="selected"<!--{/if}-->>Keine Rechte</option>
<option value="4"<!--{if $object.mode.other eq 4}--> selected="selected"<!--{/if}-->>Lesen</option>
<option value="6"<!--{if $object.mode.other eq 6}--> selected="selected"<!--{/if}-->>Lesen&amp;Schreiben</option>
</select></label>

<button type="submit"<!--{if !$object.is_rootuser AND !$object.is_currentuser_user }--> style="display: none;"<!--{/if}-->>Rechte speichern</button>
</form>
</div>
<!-- End: object_data -->

<!-- Beginn: relations -->
<!--{if $object.is_readable}-->
<form id="relations">
<h2>Alle Beziehungen (<!--{$relations_size}-->):</h2>
<div>
<!--{foreach from=$relations item=relation}-->
<!--{foreach from=$relation.objects item=obj}-->
<label title="<!--{if $relation.type eq 'RAIL_LINK' AND $object.type eq 'rail_link'}-->Ziel:<!--{elseif $relation.type eq 'RAIL_LINK'}-->Quelle:<!--{/if}--> <!--{$obj.path}-->" style="background-image: url(<!--{$obj.icon}-->);"><!--{$relation.type}--></label>
<!--{/foreach}-->
<!--{/foreach}-->
</div>
</form>
<!--{/if}-->
<!-- End: relations -->

</body>
</html>